package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitHomeTabRouter(Router *gin.RouterGroup) {
	HomeTabRouter := Router.Group("tab").Use(middleware.OperationRecord())
	{
		HomeTabRouter.POST("createHomeTab", v1.CreateHomeTab)   // 新建HomeTab
		HomeTabRouter.DELETE("deleteHomeTab", v1.DeleteHomeTab) // 删除HomeTab
		HomeTabRouter.DELETE("deleteHomeTabByIds", v1.DeleteHomeTabByIds) // 批量删除HomeTab
		HomeTabRouter.PUT("updateHomeTab", v1.UpdateHomeTab)    // 更新HomeTab
		HomeTabRouter.GET("findHomeTab", v1.FindHomeTab)        // 根据ID获取HomeTab
		HomeTabRouter.GET("getHomeTabList", v1.GetHomeTabList)  // 获取HomeTab列表
	}
}
